package com.tan.domain.vo;

import com.tan.domain.Tag;
import com.tan.domain.Type;
import com.tan.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @description:
 * @author: longshifu
 * @time: 2022/7/20 15:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BlogVO {
    /**
     *
     */

    private Long id;

    /**
     *
     */
    private String title;

    /**
     *
     */
    private String content;

    /**
     *
     */
    private Long appreciation;

    /**
     *
     */
    private Boolean commentabled;

    /**
     *
     */
    private String description;

    /**
     *
     */
    private String firstPicture;

    /**
     *
     */
    private String flag;

    /**
     *
     */
    private Boolean published;

    /**
     *
     */
    private Boolean recommend;

    /**
     *
     */
    private Boolean shareStatement;

    /**
     *
     */
    private LocalDateTime createTime;

    /**
     *
     */
    private LocalDateTime updateTime;

    /**
     *
     */
    private Integer views;

    /**
     *
     */
    private Long typeId;

    /**
     *
     */
    private Long userId;

    /**
     *
     */
    private Integer tagId;

    /**
     * 多对一
     */
    private Type type;

    private List<Tag> tags;

    private User user;

    private List<CommentVO> comments ;


    private static final long serialVersionUID = 1L;
}
